{% extends "base.html" %}

{% block title %}Login{% endblock %}

{% block content %}
<h2 class="text-center">Login</h2>
<form method="post" action="/">
    <div class="mb-3">
        <label for="username" class="form-label">Username</label>
        <input type="text" class="form-control" id="username" name="username" required>
    </div>
    <div class="mb-3">
        <label for="password" class="form-label">Password</label>
        <input type="password" class="form-control" id="password" name="password" required>
    </div>
    {% if error %}
        <div class="alert alert-danger" role="alert">
            {{ error }}
        </div>
    {% endif %}
    <button type="submit" class="btn btn-primary w-100">Login</button>
</form>
{% endblock %}
